package Day015_File类_递归_IO流.ZuoYe;

import java.io.FileOutputStream;

/**
 * @author zhangyan
 * @date 2020/5/6 18:15
 */
public class Test6 {
    public static void main(String[] args) throws Exception{

        //创建字节输出流
        FileOutputStream fos = new FileOutputStream("Demo02\\aaa\\c.txt");
        //创建字符数组
        String s = "i love java";
        byte[] bytes = s.getBytes();
        //写入数据
        fos.write(bytes);

    }
}
